package com.tanjie.blackbean.pojo.auth;

import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * @author: tanjie
 * @date: 2022-04-24
 **/
@Getter
public enum GrantType {

    PASSWORD("PASSWORD", "用户名密码认证"),

    REFRESH_TOKEN("REFRESH_TOKEN", "刷新令牌"),

    SMS("SMS", "手机短信认证"),
    ;

    @JsonValue
    private final String key;

    private final String desc;

    GrantType(String key, String desc) {
        this.key = key;
        this.desc = desc;
    }

}
